import request from '@/utils/request'

// 查询属性数据列表
export function listData(query) {
  return request({
    url: '/apartment/data/list/',
    method: 'get',
    params: query
  })
}
export function findData(query) {
  return request({
    url: '/apartment/data/find/',
    method: 'get',
    params: query
  })
}

// 查询属性数据详细
export function getData(propertyDataId) {
  return request({
    url: '/apartment/data/' + propertyDataId,
    method: 'get'
  })
}

// 新增属性数据
export function addData(data) {
  return request({
    url: '/apartment/data',
    method: 'post',
    data: data
  })
}

// 修改属性数据
export function updateData(data) {
  return request({
    url: '/apartment/data',
    method: 'put',
    data: data
  })
}

// 删除属性数据
export function delData(propertyDataId) {
  return request({
    url: '/apartment/data/' + propertyDataId,
    method: 'delete'
  })
}
